package com.spddr.pmos.cxf.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import com.spddr.pmos.cxf.JaxrsContractDetail;
import com.spddr.pmos.jpa.ContractDetail;
import com.spddr.pmos.jpa.ContractDetailId;
import com.spddr.pmos.repos.ContractDetailRepos;

@Service
public class JaxrsContractDetailImpl implements JaxrsContractDetail {
	@Autowired
	private ContractDetailRepos repository;

	@Override
	public JpaRepository<ContractDetail, ContractDetailId> getRepository() {
		return repository;
	}

	@Override
	public List<ContractDetail> findByContract(long contract) {
		return repository.findByIdContract(contract);
	}

	@Override
	public void saveByContract(long contract, List<ContractDetail> entities) {
	}

	@Override
	public void deleteByContract(long contract) {
	}
}
